<?php
class CommentsPage {
    private $comments;
    private $total;
    private $pageIndex;
    private $pageCount;
    
    public function getComments() {
        return $this->comments;
    }
    
    public function setComments($comments) {
        $this->comments=$comments;
    }
    
    public function getTotal() {
        return $this->total;
    }
    
    public function setTotal($total) {
        $this->total=$total;
    }
    
    public function getPageIndex() {
        return $this->pageIndex;
    }
    
    public function setPageIndex($pageIndex) {
        $this->pageIndex=$pageIndex;
    }
    
    public function getPageSize() {
        return $this->pageSize;
    }
    
    public function setPageSize($pageSize) {
        $this->pageSize=$pageSize;
    }
        
    public function addComment($comment) {
        $this->comments[] = $comment;
    }
    
    public function __construct() {
        $this->comments = array();
    }
}
?>